package com.kaifamiao.date1102;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;

public class ObjectsTest {

	public static void main(String[] args) {
		
		Object x = new Object() ;
		
		System.out.println( Objects.isNull( x ) );
		System.out.println( Objects.nonNull( x ) );
		
		String s = new String( "我看见阿威在打来福" );
		String t = new String( "阿威在打来福" );
		
		int hash = Objects.hash( s , t );
		System.out.println( hash );
		
		Long first = 1000L ; // 自动装箱
		Integer second = 1000 ; // 自动装箱
		System.out.println( Objects.deepEquals( first ,  second ) );

	}

}
